﻿using UnityEngine;
using System.Collections;

namespace MagicalFX
{
    /// <summary>
    /// 陨石添加力
    /// </summary>
	[RequireComponent(typeof(Rigidbody))]

    public class FX_AddForceForward : MonoBehaviour
    {

        public float Force = 300;
        void Start()
        {
            Rigidbody rig = GetComponent<Rigidbody>();
            if (rig)
            {
                rig.AddForce(this.transform.forward * Force);
            }
        }

        void Update()
        {

        }
    }
}
